<script lang="ts" setup>
import puppeteer from 'puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser.js';
import { RunBrowser } from "../wailsjs/go/main/App"
const handleConnect = async () => {
  const uri = await RunBrowser();
  const browser = await puppeteer.connect({
    browserWSEndpoint: uri,
  });
  browser.disconnect();
}
</script>

<template>
  <div>
    <a-button @click="handleConnect">连接</a-button>
  </div>
</template>

<style></style>
